package com.cxh.service.impl;

import com.cxh.base.Data2ServiceImpl;
import com.cxh.util.DataSource;
import com.cxh.dao.CarCategoryDao;
import com.cxh.entity.CarCategory;
import com.cxh.service.CarCategoryService;
import com.cxh.util.CommonUtility;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类说明：
 * @author  ChenXH
 * @date  2018-12-12 10:06:14
 */
@Service("carCategoryService")
@DataSource("dataSource2")
public class CarCategoryServiceImpl extends Data2ServiceImpl<CarCategory> implements CarCategoryService {
    @Autowired
    private CarCategoryDao dao;


    @Override
    public List<CarCategory> loadPageList(Map<String, Object> map) {
       return dao.loadPageList(map);
    }
   
    @Override
    public List<CarCategory> getXFLCategory() {
    	return dao.getXFLCategory();
    }
    
    @Override
    public String getCategoryName(String carCategory) {
    	return dao.getCategoryName(carCategory);
    }

    @Override
    public List<CarCategory> getDataByTypeId(String typeid) {
    	return dao.getDataByTypeId(typeid);
    }
    
    @Override
    public int getDataByCarCategoryId(String carcategoryid) {
    	return dao.getDataByCarCategoryId(carcategoryid);
    }
}
